package es.unex.meigas.gui;

import javax.swing.JFrame;

import es.unex.meigas.core.Meigas;

public class DefaultGUIFactory implements IGUIFactory {

	MeigasPanel meigasMainFrame = null;

	public void showMeigasWindow() {

		if (Meigas.getMainFrame() == null){
			JFrame frame = new DefaultMeigasWindow();
	    	Meigas.setMainFrame(frame);
	    	frame.pack();
	    	meigasMainFrame.setVisible(true);
		} else{
			meigasMainFrame.setVisible(true);
		}

	}

}
